// leetcode 349  两个数组的交集
var intersection = function(num1, num2) {
  return [...new Set(num1)].filter(n => num2.includes(n))
}